package com.esiran.payadmin.controller;

import com.esiran.payadmin.entity.Resp;
import com.esiran.payadmin.exception.APIRespException;
import com.esiran.payadmin.exception.AuthenticationException;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;


@Controller
@RequestMapping("/admin")
public class AdminController {
    @GetMapping
    public String index(){
        Subject o = SecurityUtils.getSubject();
        return "admin/index";
    }
    @GetMapping("login")
    public String login(){
        return "admin/login";
    }
}
